Class MailImpl

All Implemented Interfaces:
IPCData, Mail, Pdu, Signal

public class MailImpl extends PduImpl implements Mail
  • Field Details

    • from

      protected String from
    • rcpt

      protected String rcpt
    • content

      protected String content
    • subject

      protected String subject
    • dateTime

      protected String dateTime
  • Constructor Details

    • MailImpl

      public MailImpl()
  • Method Details

    • getFrom

      public String getFrom()
      Specified by:
      getFrom in interface Mail
      Returns:
      String Returns a String
    • setFrom

      public void setFrom(String from)
      Specified by:
      setFrom in interface Mail
      Parameters:
      from - Takes in a parameter of from
    • getRcpt

      public String getRcpt()
      Specified by:
      getRcpt in interface Mail
      Returns:
      String Returns a String
    • setRcpt

      public void setRcpt(String rcpt)
      Specified by:
      setRcpt in interface Mail
      Parameters:
      rcpt - Takes in a parameter of rcpt
    • getContent

      public String getContent()
      Specified by:
      getContent in interface Mail
      Returns:
      String Returns a String
    • setContent

      public void setContent(String content)
      Specified by:
      setContent in interface Mail
      Parameters:
      content - Takes in a parameter of content
    • getSubject

      public String getSubject()
      Specified by:
      getSubject in interface Mail
      Returns:
      String Returns a String
    • setSubject

      public void setSubject(String subject)
      Specified by:
      setSubject in interface Mail
      Parameters:
      subject - Takes in a parameter of subject
    • getDateTime

      public String getDateTime()
      Specified by:
      getDateTime in interface Mail
      Returns:
      String Returns a String
    • setDateTime

      public void setDateTime(String dateTime)
      Specified by:
      setDateTime in interface Mail
      Parameters:
      dateTime - Takes in a parameter of dateTime
    • getFieldType

      public PtmpTypeValue getFieldType(String fieldName)
      Overrides:
      getFieldType in class PduImpl
    • read

      public void read(EncodedBuffer buffer)
      Reads this object from an EncodedBuffer of raw data
      Specified by:
      read in interface IPCData
      Overrides:
      read in class PduImpl
      Parameters:
      buffer - The EncodedBuffer that contains the raw data from which to construct this object
    • pduRead

      public void pduRead(EncodedBuffer buffer)
      Specified by:
      pduRead in interface Signal
      Overrides:
      pduRead in class PduImpl
    • getOrderedFieldNames

      public List<String> getOrderedFieldNames()
      Specified by:
      getOrderedFieldNames in interface Signal
      Overrides:
      getOrderedFieldNames in class PduImpl
    • encodeTypeAndPayload

      public void encodeTypeAndPayload(EncodedBuffer buffer)
      Specified by:
      encodeTypeAndPayload in interface Signal
      Overrides:
      encodeTypeAndPayload in class PduImpl